package cn.edu.xmu.oomall.customer.mapper.openfeign;

import cn.edu.xmu.javaee.core.model.InternalReturnObject;
import cn.edu.xmu.oomall.customer.mapper.openfeign.Po.Region;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 谢传艳
 * @date 2024/12/19
 */
@FeignClient(name = "region-service")
public interface RegionMapper {
    @GetMapping("/regions/{id}")
    InternalReturnObject<Region> findRegionById(@PathVariable Long id);
}
